package com.arthur.service;

import com.arthur.bean.Cart;
import com.arthur.bean.Order;
import com.arthur.bean.Product;
import com.arthur.bean.User;

import java.util.List;

/**
 * @所在项目:Spring528SpringMVC528MyBatis355Demo
 * @所在包:com.arthur.service
 * @作者:arthur_wang
 * @创建时间:2020-08-28 19:34:52
 * @说明:用户模块的业务接口
 **/
public interface UserService {
    public int loginByUsernameAndUserpwd(String username, String userpwd);

    public int deleteUserinfoById(int id);

    public int deleteCartinfoById(int id);

    public int obtainUserinfoRows();

    public User fetchUserinfoById(int id);

    public int registerByUserinfo(User user);

    public int updateUser(User user);

    public List<User> fetchUserinfoListBypageno(int pageno);

    public User fetchUserinfoByName(String name);

    public Product fetchProductinfoByName(String name);

    public int addOrderinfo(Order order);

    public int addCartinfo(Cart cart);

    public int obtainOrderinfoRows();

    public List<Order> fetchOrderinfoListBypageno(int pageno,String username);

    public int obtainCartinfoRows();

    public List<Cart> fetchCartinfoListBypageno(int pageno,String username);

    public  Cart fetchCartById(String oocid);
}
